package cn.wolfcode.luowowo.gold.service.impl;

import cn.wolfcode.luowowo.gold.domain.Specification;
import cn.wolfcode.luowowo.gold.mapper.SpecificationMapper;
import cn.wolfcode.luowowo.gold.service.ISpecificationService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author 猫教授
 * @date 2019/8/24 14:03
 */
@Service
public class SpecificationServiceImpl implements ISpecificationService {
    @Autowired
    private SpecificationMapper specificationMapper;

    @Override
    public List<Specification> selectByProductId(Long productId) {



        return specificationMapper.selectByProductId(productId);
    }

    @Override
    public Specification getSpecificationById(Long specId) {



        return specificationMapper.selectByPrimaryKey(specId.intValue());
    }
}
